import {tabooBaseUrl,} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class TabooModel {
    constructor() {
        this.url = tabooBaseUrl
    }

    check(params) {
        let end = this.url + 'checkmsg'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    add(params) {
        let end = this.url + 'addinvalidmsg'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    delete(params) {
        let end = this.url + 'delinvalidmsg'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default TabooModel
